.class public Lcom/estrongs/android/ui/navigation/c;
.super Ljava/lang/Object;
.source "MultiWindowControlerNew.java"


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/view/PopMultiWindowGrid;",
            ">;"
        }
    .end annotation
.end field

.field private b:Z

.field private c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

.field private d:Landroid/os/Handler;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/FrameLayout;

.field private h:Landroid/view/View;

.field private i:Landroid/widget/FrameLayout;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;Landroid/os/Handler;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/navigation/c$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/navigation/c$a;-><init>(Lcom/estrongs/android/ui/navigation/c;)V

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/navigation/c;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 4
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    .line 5
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->r0()Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->e:Landroid/view/View;

    const v1, 0x7f090b22

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->g:Landroid/widget/FrameLayout;

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const/4 v1, 0x0

    const v2, 0x7f0c02c4

    invoke-virtual {v0, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->f:Landroid/view/View;

    .line 8
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f0c02c8

    invoke-virtual {v0, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->h:Landroid/view/View;

    const v1, 0x7f090254

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->i:Landroid/widget/FrameLayout;

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->e:Landroid/view/View;

    const v1, 0x7f09022a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/ui/navigation/c;->e:Landroid/view/View;

    const v2, 0x7f09022c

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 12
    invoke-static {p1}, Lcom/estrongs/android/view/s;->a(Landroid/app/Activity;)Lcom/estrongs/android/view/s;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/view/s;->b()Landroid/view/View$OnClickListener;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    invoke-static {p1}, Lcom/estrongs/android/view/s;->a(Landroid/app/Activity;)Lcom/estrongs/android/view/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/view/s;->b()Landroid/view/View$OnClickListener;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    invoke-static {p1}, Lcom/estrongs/android/view/s;->a(Landroid/app/Activity;)Lcom/estrongs/android/view/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/view/s;->e()Landroid/view/View;

    move-result-object v0

    .line 15
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_0

    .line 16
    invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 17
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/navigation/c;->g:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 18
    iput-object p2, p0, Lcom/estrongs/android/ui/navigation/c;->d:Landroid/os/Handler;

    .line 19
    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 p2, 0x1

    if-ne p1, p2, :cond_1

    goto :goto_0

    :cond_1
    const/4 p2, 0x0

    :goto_0
    iput-boolean p2, p0, Lcom/estrongs/android/ui/navigation/c;->b:Z

    .line 20
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/ui/navigation/c;->a:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/navigation/c;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/navigation/c;->d:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/navigation/c;)Lcom/estrongs/android/pop/view/FileExplorerActivity;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/navigation/c;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->g:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    return-void
.end method

.method public b()Landroid/view/View;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->e:Landroid/view/View;

    return-object v0
.end method

.method public c()Les/hy;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->c:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    return-object v0
.end method

.method public d()V
    .locals 6

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/navigation/c;->c()Les/hy;

    move-result-object v0

    invoke-virtual {v0}, Les/hy;->d()I

    move-result v0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/navigation/c;->c()Les/hy;

    move-result-object v1

    invoke-virtual {v1}, Les/hy;->c()I

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v0, :cond_0

    .line 3
    iget-object v4, p0, Lcom/estrongs/android/ui/navigation/c;->a:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;

    .line 4
    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 5
    invoke-virtual {v4, v1}, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;->a(I)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 6
    :cond_0
    iget-boolean v1, p0, Lcom/estrongs/android/ui/navigation/c;->b:Z

    const/4 v3, 0x4

    const/4 v4, 0x1

    if-eqz v1, :cond_1

    .line 7
    rem-int/lit8 v1, v0, 0x2

    if-lez v1, :cond_2

    .line 8
    rem-int/lit8 v1, v0, 0x2

    rsub-int/lit8 v1, v1, 0x2

    goto :goto_1

    .line 9
    :cond_1
    rem-int/lit8 v1, v0, 0x4

    if-lez v1, :cond_2

    .line 10
    rem-int/lit8 v1, v0, 0x4

    rsub-int/lit8 v1, v1, 0x4

    :goto_1
    add-int/2addr v1, v0

    add-int/lit8 v2, v1, -0x1

    .line 11
    :cond_2
    :goto_2
    iget-object v1, p0, Lcom/estrongs/android/ui/navigation/c;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_4

    if-gt v0, v2, :cond_3

    .line 12
    iget-object v1, p0, Lcom/estrongs/android/ui/navigation/c;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_3

    .line 13
    :cond_3
    iget-object v1, p0, Lcom/estrongs/android/ui/navigation/c;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/view/PopMultiWindowGrid;

    const/16 v5, 0x8

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 14
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->h:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setFocusable(Z)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/navigation/c;->h:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z
    :try_end_0
    .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_4

    :catch_0
    move-exception v0

    .line 16
    invoke-virtual {v0}, Ljava/lang/IndexOutOfBoundsException;->printStackTrace()V

    :goto_4
    return-void
.end method
